using pub.CmdUI.Cmd;
using pub.CmdUI.UI.Control;

namespace todo.Cmd.Misc
{
    public class SetReminderCmd : DefaultCmd, ICmdState
    {
        bool ICmdState.Enabled
        {
            get { return TodoApi.Instance.ActiveTodo != null; }
        }

        public override void Execute(IControlUI controlUi)
        {
            TodoApi.Instance.SetReminder();
        }
    }
}